/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-03-08 11:16:14
 * @LastEditTime : 2023-05-26 14:02:09
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\FirstLevel\CenterPushLogs.jsx
 * @Description  :
 */
import { API_LIST } from '../../../Api/Api'
import { commonTableList, BuiltInData } from '../Common/common'

export const CenterPushLogs = async ({ url, OptionsEvent, ClientData }) => {
    let data = {
        type: '系统配置',
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()['getCenterPushLogsGetPushLogs'],
        added: `pos${url}`,
        modify: `put${url}`,
        delete: `del${url}`,
        hideInSearch: true,
        columns: [
            commonTableList.uuid,
            { ...commonTableList.tableName, title: '子系统同步表名' },
            {
                dataIndex: 'lastPushTime',
                title: '最后上传时间',
                valueType: 'input',
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'lastPushType',
                title: '同步方式',
                valueType: 'select',
                valueEnum: BuiltInData.lastPushInfo,
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'lastPushCount',
                title: '同步条数',
                valueType: 'input',
                rules: true,
                width: 150,
            },
            {
                dataIndex: 'centerUuid',
                title: '上传管理端UUID',
                valueType: 'input',
                rules: true,
                width: 150,
                ellipsis: true,
            },
            commonTableList.isEnabled,
            {
                dataIndex: 'createUserUuid',
                title: '添加人',
                valueType: 'input',
                rules: true,
                width: 150,
                ellipsis: true,
            },
        ],
    }
    return data
}
